package org.pine;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName BookController
 * @Description TODO
 * @Author liucs
 * @Date 2021-02-24
 * @Version V1.0
 */
@RestController
public class BookController {
    @Resource
    Book book;

    @GetMapping("/book")
    public String getBook(){
        return book.toString();
    }
}
